const Sequelize = require('sequelize'),
      {mysql} = require('../../config/db_config');
const seq = new Sequelize(...mysql.conf,mysql.base);
//测试链接
seq.authenticate().then(()=>{
    console.log('MySql server is connected completely');
}).catch((error)=>{
    console.log('MySql server is failed to be connected Error:'+error);
})
module.exports = seq;
module.exports = seq;